package com.example.fluentmybatisdemo.helloworld.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.IEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
/**
 * @program: mybatis-test-demo
 * @description: 简单演示类实体
 * @author: Zhou
 * @create: 2021-08-21 18
 **/
@FluentMybatis(table = "hello_world")
@Data
@Accessors(chain = true)
public class HelloWorldEntity implements IEntity {

    @TableId
    private Long id;

    private String sayHello;

    private String yourName;

    @TableField(insert = "now()")
    private Date gmtCreate;

    @TableField(insert = "now()", update = "now()")
    private Date gmtModified;

    @TableField(insert = "0")
    private Boolean isDeleted;


}

